include(../../env.pri)
QT       += core gui widgets dbus sql

TARGET = shortcutPanel

TEMPLATE = lib

CONFIG += plugin

CONFIG += c++11 link_pkgconfig

PKGCONFIG +=gio-2.0 glib-2.0 gio-unix-2.0 kysdk-qtwidgets
LIBS += -lX11 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -ldconf -ldl -lcrypto

#sdk
INCLUDEPATH += \
/usr/include/kysdk/applications/
/usr/libs/kysdk/applications/
LIBS += -L/usr/libs/kysdk/applications/ -lkysdk-qtwidgets
LIBS += -lpthread -lsystemd

#DESTDIR = ../ukui-quick-operation-panel
RESOURCES  += shortcutPanelPlugin.qrc \
    clipboard/clipboardPlugin.qrc
PKGCONFIG  += gsettings-qt
#LIBS          +=  -L$$[QT_INSTALL_LIBS] -ldconf
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    ../../commondata.cpp \
    ../../dataprocess.cpp \
    ../../dbusmanager.cpp \
    ../../gsettingmanager.cpp \
    ../../kuploadmessage/kuploadmessage.cpp \
    quickoperationdbus.cpp \
    quickoperationwidget.cpp \
    clipboard/cleanpromptbox.cpp \
    clipboard/clipBoardInternalSignal.cpp \
    clipboard/clipboarddb.cpp \
    clipboard/clipboardlisetwidget.cpp \
    clipboard/clipboardwidgetentry.cpp \
    clipboard/editorwidget.cpp \
    clipboard/pixmaplabel.cpp \
    clipboard/previewimagewidget.cpp \
    clipboard/searchwidgetitemcontent.cpp \
    clipboard/sidebarclipboardplugin.cpp \
    shortcutpanel/accountinformation.cpp \
    shortcutpanel/scrollingareawidgetmajor.cpp \
    shortcutpanel/shortcutpanelwidget.cpp \
    shortcutpanel/templatewidget.cpp \
    shortcutpanel/weatherwidget.cpp

HEADERS += \
    ../../commondata.h \
    ../../dataprocess.h \
    ../../dbusmanager.h \
    ../../gsettingmanager.h \
    ../../kuploadmessage/kuploadmessage.h \
    ../../kuploadmessage/uploadPluginInterface.h \
    ../../plugin-signals/sidebarclipboardsignal.h \
    quickoperationdbus.h \
    quickoperationwidget.h \
    clipboard/cleanpromptbox.h \
    clipboard/clipBoardInternalSignal.h \
    clipboard/clipbaordstructoriginaldata.h \
    clipboard/clipboarddb.h \
    clipboard/clipboardlisetwidget.h \
    clipboard/clipboardsignal.h \
    clipboard/clipboardwidgetentry.h \
    clipboard/editorwidget.h \
    clipboard/pixmaplabel.h \
    clipboard/previewimagewidget.h \
    clipboard/searchwidgetitemcontent.h \
    clipboard/sidebarclipboardplugin.h \
    shortcutpanel/accountinformation.h \
    shortcutpanel/scrollingareawidgetmajor.h \
    shortcutpanel/shortcutpanelwidget.h \
    shortcutpanel/templatewidget.h \
    shortcutpanel/weatherwidget.h

INCLUDEPATH    += ../../plugin-interface \
                    /usr/include/dconf

DISTFILES += \
             clipboard/clipboardPlugin.json \
             clipboard/fileIcon.json \
             image/arrow.svg \
             data/org.ukui.quick.operation.panel.gschema.xml \
             quickOperation.json

schemes.files += data/org.ukui.quick.operation.panel.gschema.xml
schemes.path = /usr/share/glib-2.0/schemas/

TRANSLATIONS   += ../../../translations/ukui-quick-operation-panel/ukui-quick-operation-panel_zh_CN.ts \
                  ../../../translations/ukui-quick-operation-panel/ukui-quick-operation-panel_bo_CN.ts \
                  ../../../translations/ukui-sidebar-clipboard/ukui-sidebar-clipboard_zh_CN.ts \
                  ../../../translations/ukui-sidebar-clipboard/ukui-sidebar-clipboard_bo.ts \
                  ../../../translations/ukui-sidebar-clipboard/ukui-sidebar-clipboard_bo_CN.ts \
                  ../../../translations/ukui-sidebar-clipboard/ukui-sidebar-clipboard_tr.ts

translation1.path = /usr/share/ukui-sidebar/ukui-quick-operation-panel
translation1.files += ../../../translations/ukui-quick-operation-panel/*.qm

translation2.path = /usr/share/ukui-sidebar/ukui-sidebar-clipboard
translation2.files += ../../../translations/ukui-sidebar-clipboard/*.qm

# Default rules for deployment.
unix {
    target.path = $${PLUGIN_INSTALL_DIRS}
    INSTALLS += target schemes translation1 translation2
}
#!isEmpty(target.path): INSTALLS += target
